﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace Gluten.Models
{
    public class Mail
    {
        [Required]
        public string Title { get; set; }

        [Required]
        public string Body { get; set; }

        [Required(ErrorMessage = "Обязательное поле!")]
        [RegularExpression(@"/d+@/d+(\.d+)*")]
        public string from { get; set; }
    }
}